@extends('web.layouts.app')

@section('styles')
    <link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/ucenter.css')}}">
    <link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/base.css')}}">

    @endsection

@section('content')
    <!--container-->
    <div class="uc-wrap swrap mt20">
        <div class="uc-side L">
            <div class="uc-nav">
                <ul>
                    @include('web.user_center.menu')
                </ul>
            </div>
        </div>
        <div class="uc-main uc-mainbg user-invitation-gift R">
            <!-- 展示 -->
            <div class="profit_Exhibition uc-mainbg  clearfix">
                <div style="height: 80px;line-height:80px;font-size:16px;">
                    <span style="margin-right: 50px;">经纪人：<span class="name">{{$all['show_name']}}</span></span><span>经纪人编码：<span class="code">{{$all['invite_code']}}</span></span>
                </div>
                <ul>
                    <li>总投资金额：<span>{{$all['use_money']}}</span>元</li>
                    <li>总推荐费用：<span>{{$all['invite_money']}}</span>元</li>
                    <li>返利：<span>{{$all['return_money']}}</span>元</li>
                </ul>
            </div>
            <!--列表-->
            <div class="user-item-list">
                <ul class="data-list custom-list">
                    <li class="th">
                        <div class="col-nackname">用户名</div>
                        <div class="col-name">真实姓名</div>
                        <div class="col-number">投资金额</div>
                        <div class="col-income">创建时间</div>
                        <div class="col-time">推荐费用(元)</div>
                        <div class="col-status">返利(元)</div>
                        <div class="col-handle">操作</div>
                    </li>
                    @foreach($lists as $list)
                        <li>
                            <div class="col-nackname">{{!empty($list->username)?$list->username:$list->phone_number}}</div>
                            <div class="col-name">{{empty($list->name)?'--':$list->name}}</div>
                            <div class="col-number">{{empty($list->use_money)?'--':$list->use_money}}</div>
                            <div class="col-income">{{empty($list->created_at)?'--':$list->created_at}}</div>
                            <div class="col-time">{{empty($list->invite_money)?'--':$list->invite_money}}</div>
                            <div class="col-status orange">{{empty($list->return_money)?'--':$list->return_money}}</div>
                            <div class="col-handle"><a class="blue" href="{{'/agent/customer_invest_list/'.$list->user_id.'?menu=15'}}">投资记录</a></div>
                        </li>
                        @endforeach
                </ul>
                <div class="uc-page-box text-right">
                    {!! $links !!}
                </div>
            </div>

        </div>
    </div>
    <!--container /-->
@endsection

@section('scripts')
    <script src="{{ asset('resources/web/js/index.js') }}"></script>
    <script src="{{ asset('resources/web/js/jquery.min.js') }}"></script>
    <script type="text/javascript" src="{{asset('resources/web/plugins/datePicker/WdatePicker.js')}}"></script>
    @endsection